dropdown: Use our own CSS name
authorMatthias Clasen <mclasen@redhat.com>
Sun, 7 Jun 2020 13:01:20 +0000 (09:01 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 7 Jun 2020 13:01:20 +0000 (09:01 -0400)
Use the name dropdown for the css node, and document it.

gtk/gtkdropdown.c

index 4d94d17e2c6c926b22c47dd8f4fa7265d28772fe..6674a8ba3518fd5413fcea89ff2644c477eba793 100644 (file)
  *   </items>
  * </object>
  * ]|
-
+ *
+ * * # CSS nodes
+ *
+ * GtkDropDown has a single CSS node with name dropdown,
+ * with the button and popover nodes as children.
  */
 
 struct _GtkDropDown
@@ -526,7 +530,7 @@ gtk_drop_down_class_init (GtkDropDownClass *klass)
   gtk_widget_class_bind_template_callback (widget_class, search_changed);
   gtk_widget_class_bind_template_callback (widget_class, search_stop);
 
-  gtk_widget_class_set_css_name (widget_class, I_("combobox"));
+  gtk_widget_class_set_css_name (widget_class, I_("dropdown"));
 }
 
 static void